Skip to content

Conversation

@DenrianWeiss
Copy link

This feature is documented by VIP Loan
Notice: some of the result types is inconsistent with the document, so we use the actual type returned by binance API instead of the example response in the document, for example: CollateralData have 9 ranks instead of the 3 in document, and InterestRate & InterestRateHistory is using string timestamp instead of int

Copy link
Collaborator

@pcriadoperez pcriadoperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!!
I left some comments and also if possible I'd add a file for integrations tests

return s
}

func (s *VipLoanInterestRateHistoryService) Do(ctx context.Context) (*VipLoanInterestRateHistoryResponse, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would seperate each service into it's own file to keep consistent with the repo

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to spilt these apis into 3 file like market data, user information and trade? I think split them into 12 files will be too much files

@@ -0,0 +1,590 @@
package binance

import (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd seperate to have one test file per service to keep consistent with the repo

// ----- end simple earn service -----

// ----- vip loan service -----
func (c *Client) NewVipLoanService() *VipLoanService {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd list here all the services

@carlosmiei carlosmiei self-assigned this Apr 23, 2025
@carlosmiei carlosmiei requested a review from Copilot April 23, 2025 11:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds VIP Loan API support by introducing a new service constructor in the client.

  • Adds NewVipLoanService to instantiate the VipLoanService
  • Includes inline comments to demarcate the VIP loan service section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants